package baizhi.dao;

import baizhi.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentDao {
    void insert(Student student);
    void delete(Integer id);
    void deleteAny(@Param("ids") Integer[] ids);
    void update(Student student);
    Student selectOne(Integer id);
    List<Student> selectPage(@Param("start") Integer start, @Param("size") Integer size,
                             @Param("name") String name, @Param("age1") Integer age1,@Param("age2") Integer age2);
    Integer count(@Param("name") String name, @Param("age1") Integer age,@Param("age2") Integer age2);
}
